package com.grgbanking.it.system.service;


import com.grgbanking.it.base.IAlterService;
import com.grgbanking.it.base.IDeleteService;
import com.grgbanking.it.base.ISearchOneJSONService;
import com.grgbanking.it.common.entity.PageQuery;
import com.grgbanking.it.system.entity.Role;

/**
 * 角色管理
 * 
 * RoleService
 * 
 * @author 潘广伟
 * @Email p_3er@qq.com
 * @Date 2014-12-18 上午9:44:38
 * 
 * @version 1.0.0
 *
 */
public interface IRoleService extends IAlterService<Role>,ISearchOneJSONService<Integer>,IDeleteService<Integer> {
	/**
	 * 获取所有角色
	 * findByPageToJson
	 * 
	 * @param query
	 * @param username
	 * @param key
	 * @return
	 * @throws Exception 
	 * @exception 
	 * @since  1.0.0
	 */
	public String findByPageToJson(PageQuery query,String username,String key) throws Exception;
	/**
	 * 为角色分配资源
	 * distributeResources
	 * 
	 * @param id
	 * @param resourceIds
	 * @throws Exception 
	 * @exception 
	 * @since  1.0.0
	 */
	public void updateDistributeResources(Integer id,String resourceIds) throws Exception;
}